package com.canaan.business.domain.basic;

import com.canaan.common.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.canaan.common.annotation.Excel;
import com.canaan.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 物料BOM明细对象 wms_product_bom_item
 *
 * @author ruoyi
 * @date 2023-01-28
 */
@TableName("wms_product_bom_item")
public class WmsProductBomItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 编号 */
    @Excel(name = "编号")
    private String no;

    /** BOM编号 */
    @Excel(name = "BOM编号")
    private String bomNo;

    /** 物料编号 */
    @Excel(name = "物料编号")
    private String productNo;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String productName;

    /** 物料类型 */
    @Excel(name = "物料类型")
    private String productType;

    /** 数量 */
    @Excel(name = "数量")
    private BigDecimal quantity;

    /** 单位 */
    @Excel(name = "单位")
    private String productUnit;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 是否删除：1是 0否 */
    private String delFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setNo(String no)
    {
        this.no = no;
    }

    public String getNo()
    {
        return no;
    }
    public void setBomNo(String bomNo)
    {
        this.bomNo = bomNo;
    }

    public String getBomNo()
    {
        return bomNo;
    }
    public void setProductNo(String productNo)
    {
        this.productNo = productNo;
    }

    public String getProductNo()
    {
        return productNo;
    }
    public void setProductName(String productName)
    {
        this.productName = productName;
    }

    public String getProductName()
    {
        return productName;
    }
    public void setProductType(String productType)
    {
        this.productType = productType;
    }

    public String getProductType()
    {
        return productType;
    }
    public void setQuantity(BigDecimal quantity)
    {
        this.quantity = quantity;
    }

    public BigDecimal getQuantity()
    {
        return quantity;
    }
    public void setProductUnit(String productUnit)
    {
        this.productUnit = productUnit;
    }

    public String getProductUnit()
    {
        return productUnit;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("no", getNo())
            .append("bomNo", getBomNo())
            .append("productNo", getProductNo())
            .append("productName", getProductName())
            .append("productType", getProductType())
            .append("quantity", getQuantity())
            .append("productUnit", getProductUnit())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .toString();
    }
}
